Ext.application({
    name: 'Wgo',
    controllers: ['Main'],
    views:  ['Main', 'FestivalList','ExhibitionDetail','ExhibitionList','Header','Login','Footer'],
    stores: ['ExhibitionStore','FestivalStore'],
    models: ['Exhibition','Festival'],
    icon: {
        '57': 'resources/icons/Icon.png',
        '72': 'resources/icons/Icon~ipad.png',
        '114': 'resources/icons/Icon@2x.png',
        '144': 'resources/icons/Icon~ipad@2x.png'
    },
    phoneStartupScreen: "resources/startup/320x460.jpg",
    isIconPrecomposed: true,

    startupImage: {
        '320x460': 'resources/startup/320x460.jpg',
        '640x920': 'resources/startup/640x920.png',
        '768x1004': 'resources/startup/768x1004.png',
        '748x1024': 'resources/startup/748x1024.png',
        '1536x2008': 'resources/startup/1536x2008.png',
        '1496x2048': 'resources/startup/1496x2048.png'
    },
    launch: function() {
        console.log("App launch");
        //Remove Load indicator

        var task = Ext.create('Ext.util.DelayedTask', function() {
            // Destroy the #appLoadingIndicator element
            //Ext.fly('appLoadingIndicator').destroy();
            //Change the index.html background color to white
            Ext.get('wgo-pg-body').setStyle('backgroundColor', 'white');
            /*Check if authentication ticket already available*/
            Ext.Viewport.add(Ext.create('Wgo.view.Login'));
        });
        task.delay(1000);

    }
    ,
    //Application wide global variables declaration
    restUrl: 'http://www.mydomain.com/resfulapi/',
    logoText: 'Wgo'
});
